package com.example.demo1.week2.week2_6;

public class MyClass2 {
    public int x;
    public MyClass2(int y){
        System.out.println("包com.example.demo1.week2.week2_6，构造MyClass2");
        x = y +10;
    }

    public static void main(String[] args) {
        MyClass2 myObj = new MyClass2(10);
        System.out.println(myObj.x);
    }
}
